package com.cskaoyan.service;

import com.cskaoyan.bean.BasePageInfo;
import com.cskaoyan.bean.MarketGoods;
import com.cskaoyan.bean.leihao.po.CreatePo;
import com.cskaoyan.bean.leihao.po.Update;
import com.cskaoyan.bean.leihao.vo.*;
import com.cskaoyan.bean.param.CommonData;

/**
 * @Auther: leihao
 * @Date: Created in 13:46 2022/6/27
 */
public interface GoodsService {
    //根据传入的BasePageInfo查询商品列表
    CommonData<MarketGoods> getGoodsList (BasePageInfo basePageInfo,Integer goodsId,String goodsSn,String name);

    GoodsDetailVo getGoodsDetail(Integer id);

    CatAndBrandVo getCatAndBrand();

    void deleteGoodsById(MarketGoods marketGoods);

    void update(Update update);

    void create(CreatePo createPo);

    Integer getGoodsCount();

    CommonData<HotGoodsListDTO> getRelated(Integer id);

    WxGoodsDetailVo getWxGoodsDetail(Integer id);
}
